//
//  MultipleColumnsCell.m
//  Doctor
//
//  Created by 阳光 on 16/10/19.
//  Copyright © 2016年 阳光. All rights reserved.
//

#import "MultipleColumnsCell.h"

@implementation MultipleColumnsCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.backgroundColor=WhiteColor;
        self.multipleColumnsView.hidden=NO;
        
    }
    return self;
}

// multipleColumnsView
-(MultipleColumnsView *)multipleColumnsView
{
    if (!_multipleColumnsView) {
        _multipleColumnsView=[[MultipleColumnsView alloc]init];
        [self.contentView addSubview:_multipleColumnsView];
        _multipleColumnsView.backgroundColor=WhiteColor;
        [_multipleColumnsView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.bottom.right.mas_equalTo(0);
        }];
    }
    return _multipleColumnsView;
}

-(void)setIndexPath:(NSIndexPath *)indexPath
{
    _indexPath=indexPath;
}

-(void)setDataArray:(NSArray *)dataArray
{
    _dataArray=dataArray;
    self.multipleColumnsView.indexPath=self.indexPath;
    self.multipleColumnsView.dataArray=_dataArray;
}

@end
